//
//  ServerCodecDef.h
//  QGZone
//
//  Created by xiabin on 15/8/17.
//  Copyright (c) 2015年 Olive.Banana. All rights reserved.
//

#ifndef QGZone_ServerCodecDef_h
#define QGZone_ServerCodecDef_h

//城市信息
//{"pm25" : 33,
//"humidity" : 55,
//"temperature" : 19}

#define kCityPM25 @"pm25"
#define kCityWet  @"humidity"
#define kCityTemp @"temperature"


//所有协议返回
#define kResultCode @"resultCode"
#define kResultMsg @"resultMsg"

//登陆注册
#define kUserClass @"user"
#define kUserName @"username"
#define kUserPwd @"password"

//注册激活
#define kProfileClass @"userProfile"
#define kUserUID @"uid"
#define kUserAvatarUrl @"avatar"
#define kUserGender @"gender"
#define kUserUpdatetime @"updatedTime"
#define kUserNick @"nickname"
#define kUserSig @"intro"
#define kUserStatus @"status"
#define kUserCompany @"company"
#define kUserProfileClass @"userProfile"
#define kUserIsFollowed @"isFollowing"
#define kUserfollowerCnt @"followerCount"
#define kUserfollowingCnt @"followingCount"
#define kUserBirthday @"birthday"
#define kUserFollowed @"followStatus"
#define kUserHometownId @"hometownId"

//青果吧
#define kImageId @"attachmentId"
#define kImageUrl @"resUrl"
#define kImageThumbnail @"thumbnailUrl"
#define kCategoryClass @"categoryList"
#define kCategoryName @"categoryName"
#define kCategoryId @"categoryId"
#define kCategoryPub @"allowPublish"
#define kCategoryStatus @"status"

#define kPostClass @"post"
#define kPostsClassL1 @"postsPage"
#define kPostsClassL2 @"result"
#define kPostsItemID @"postId"
#define kPostsItemUid @"uid"
#define kPostsItemTitle @"title"
#define kPostsItemContent @"content"
#define kPostsItemtypeId @"typeId"
#define kPostsMimeType @"postMimeType"
#define kPostsItempostStatus @"postStatus"
#define kPostsItemAllowComments @"allowComments"
#define kPostsItemCommentsCount @"commentCount"
#define kPostsItemViewCount @"viewCount"
#define kPostsItemfavourCount @"favourCount"
#define kPostsItemcreateTime @"createdTime"
#define kPostsItemupdatedTime @"updatedTime"
#define kPostsItemcategoryId @"categoryId"
#define kPostsItemUserClass @"userProfile"
#define kPostsItemIsFavour @"isFavour"
#define kPostsItemAttachmentList @"attachments"
#define kPostsItemThumbnailList @"kPostsItemThumbnailList"
#define kPostsItemImageH @"h"
#define kPostsItemImageW @"w"
#define kPostsItemImageSizeW @"ImageSizeW"
#define kPostsItemImageSizeH @"ImageSizeH"
#define kPostsItemTagList @"tagList"
#define kPostsItemTagName @"tagName"
#define kPostsItemTagStatus @"status"

#define kPostsWebsiteItemClass @"websiteItemList"
#define kWebItemCode @"websiteCode"
#define kWebItemName @"websiteName"
#define kWebItemPrice @"price"
#define kWebItemtitle @"title"
#define kWebItemUrl @"itemUrl"
#define kWebItemImgUrl @"imageUrl"

#define kCommentClassL1 @"comments"
#define kCommentClassL2 @"result"
#define kCommentID @"commentId"
#define kCommentPostID @"postId"
#define kCommentSenderID @"uid"
#define kCommentContent @"content"
#define kCommentCreateTime @"createdTime"
#define kCommentUpdateTIme @"updatedTime"
#define kCommentUserClass @"userProfile"
#define kCommentReplyToUserClass @"replayUserProfile"
#define kCommentImageArray @"imageList"
#define kCommentImageUrl @"imageUrl"
#define kCommentPostTitle @"postTitle"

#define kReviewClassL1 @"reviewPage"
#define kReviewClassL2 @"result"
#define kReviewID @"reviewId"
#define kReviewProductId @"productId"
#define kReviewSenderID @"uid"
#define kReviewContent @"content"
#define kReviewCreateTime @"createdTime"
#define kReviewUpdateTIme @"updatedTime"
#define kReviewUserClass @"userProfile"
#define kReviewScore @"score"
#define kReviewImageListClass @"reviewImageList"
#define kReviewImageUrl @"imageUrl"
#define kReviewStatus @"status"

//值得买
#define kProdcutClass @"product"
#define kProductId @"productId"
#define kProductName @"name"
#define kProductDes @"description"
#define kProductMainImg @"image"
#define kProductPrice @"price"
#define kProductmarketPrice @"marketPrice"
#define kProductViewCnt @"viewCount"
#define kProductCommentCnt @"commentCount"
#define kProductSaleCnt @"saleCount"
#define kProductCreateTime @"createdTime"
#define kProductAvailableDate @"availableDate"
#define kProductImageClass @"productImageList"
#define kProductImageUrl @"imageUrl"
#define kProductHomeClass @"Root"
#define kProductInCart @"isInShoppingCart"
#define kProductInSave @"isInCollect"
#define kProductQuantity @"quantity"
#define kProductAdWords @"adWords"

#define kTopicId @"topicId"
#define kTopicparentId @"parentId"
#define kTopicName @"topic"
#define kTopicDescription @"description"
#define kTopicImage @"posterUrl"
#define kTopicStarttime @"startTime"
#define kTopicEndtime @"endTime"
#define kTopicStatus @"status"
#define kTopicCreatetime @"createdTime"
#define kTopicUpdatedtime @"updatedTime"
#define kTopicSubTopicClass @"subTopicList"
#define kTopicItemClass @"itemList"
#define kTopicItemProductId @"productId"
#define kTopicStatus @"status"
#define kTopicClass @"topicList"
#define kTopicProductsClass @"productList"

#define kOrderID @"orderId"
#define kOrderUID @"uid"
#define kOrderMethon @"paymentMethod"
#define kOrderAddress @"shippingAddressId"
#define kOrderItems @"items"
#define kOrderProductId @"productId"
#define kOrderQuantity @"quantity"
#define kOrderPrePayID @"prePayId"
#define kOrdertotalDue @"totalDue"
#define kOrderCreateTime @"createdTime"
#define kOrderUpdatedTime @"updatedTime"
#define kOrderItemsArray @"orderItems"
#define kOrderItemId @"itemId"
#define kOrderItemImage @"productImage"
#define kOrderItemQuantity @"quantity"
#define kOrderItemCnt @"totalItemCount"
#define kOrderClassL1 @"orderPage"
#define kOrderClassL2 @"result"
#define kOrderStatus @"status"


#define kAddressID @"addressId"
#define kAddressUID @"uid"
#define kAddressName @"name"
#define kAddressProvinceId @"provinceId"
#define kAddressCityID @"cityId"
#define kAddressRegionId @"regionId"
#define kAddressDetail @"address"
#define kAddressPhoneNumber @"phoneNumber"
#define kAddressPostalCode @"postalCode"
#define kAddressIsDefault @"isDefault"

#define kWXPayClass @"weixinPay"
#define kWXPartnerId @"partnerId"
#define kWXPrePayId @"prePayId"
#define kWXAppId @"appId"
#define kWXPayPackage @"payPackage"
#define kWXNoncestr @"noncestr"
#define kWXTimestamp @"timestamp"
#define kWXSign @"sign"

#define kIMToken @"token"
#define kIMGroupId @"groupId"
#define kIMGroupFounder @"gounderUid"
#define kIMGroupName @"groupName"
#define kIMGroupDes @"groupDescription"
#define kIMGroupAvtar @"groupAvtar"
#define kIMRoomClass @"roomList"
#define kIMRoomId @"roomId"
#define kIMLastMessage @"lastMsg"
#define kIMLastMessageTime @"lastMsgTime"
#define kIMRoomName @"roomName"
#define kIMRoomDes @"roomDescription"
#define kIMRoomAvatar @"roomAvatar"

#define kMyLikeClassL1 @"logBeanPage"
#define kMyLikeClassL2 @"result"
#define kMyLikePostId @"postId"
#define kMyLikeUid @"uid"
#define kMyLikeCreatedTime @"createdTime"
#define kMyLikePostTitle @"postTitle"
#define kMyLikeUserClass @"userProfile"

#define kFollowingClassL1 @"followingPage"
#define kFollowingClassL2 @"result"
#define kFollowerClassL1 @"followerPage"
#define kFollowerClassL2 @"result"
#define kFollowerStatus @"followStatus"
#define kFollowItemsClassL1 @"followPage"
#define kFollowItemsClassL2 @"result"


#define kQQGender @"gender"
#define kQQNick @"nickname"
#define kQQAvatar @"figureurl_2"

#define kWechatOpenID @"openid"
#define kWechatNick @"nickname"
#define kWechatAvater @"headimgurl"
#define kWechatGender @"sex"

#define kSettingClass @"userSettings"
#define kSettingCode @"settingCode"
#define kSettingValue @"settingValue"

#endif
